﻿using Abp.Domain.Entities.Auditing;
using System.ComponentModel;

namespace SingleUserMall.Points
{
    public class PointRules : FullAuditedEntity<long>
    {
        /// <summary>
        /// 对应用户等级
        /// </summary>
        public UserRuleLevel UserRuleLevel { get; set; }
        /// <summary>
        /// 分享好友关注后可得到的体验金金额
        /// </summary>
        public int SharePoint { get; set; }
        /// <summary>
        /// 可得VIP团队体验金比例
        /// </summary>
        public decimal VIPGroupRate { get; set; }
        /// <summary>
        /// 可得直推会员体验金比例
        /// </summary>
        public decimal DirectUserRate { get; set; }
        /// <summary>
        /// 直推升级VIP奖励体验金金额
        /// </summary>
        public int DirectUserToVIP { get; set; }
        /// <summary>
        /// 直推升级合伙人奖励体验金金额
        /// </summary>
        public int DirectUserToSuperVIP { get; set; }
    }

    public enum UserRuleLevel : int
    {
        /// <summary>
        /// 普通用户
        /// </summary>
        [Description("普通用户")]
        NomalUser = 0,
        /// <summary>
        /// VIP会员
        /// </summary>
        [Description("VIP会员")]
        VIPUser = 1,
        /// <summary>
        /// 合伙人
        /// </summary>
        [Description("合伙人")]
        SuperVIPUser = 2,
    }
}
